/**
 * 题库
 */

import request from "@/utils/request.js"

// 查询题库列表
export function getQuertionBankListApi(params) {
  return request({
    url: '/edu/questions/list',
    method: 'POST',
    params
  })
}

// 添加
export function addQuertionBankApi(params) {
    return request({
      url: '/edu/questions/add',
      method: 'POST',
      params
    })
}
  
// 删除
export function removeQuertionBankApi(params) {
    return request({
      url: '/edu/questions/remove',
      method: 'POST',
      params
    })
}

// 修改
export function EditQuertionBankApi(params) {
    return request({
      url: '/edu/questions/edit',
      method: 'POST',
      params
    })
}


// 详情
export function infoQuertionBankApi(params) {
    return request({
      url: '/edu/questions/questionsId',
      method: 'POST',
      params
    })
}

// 年级列表
export function getGradeListApi(data) {
  return request({
    url: '/edu/typeData/list',
    method: 'POST',
    params:data
  })
}


// 获取课程列表 / 搜索
export function getCourseListApi(params) {
  return request({
    url: '/edu/course/list',
    method: 'POST',
    params
  })
}


// 导入题库
export function ImportExaminationRoomApi(data) {
  return request({ 
    ContentType: 'multipart/form-data',
    url: "/edu/questions/importData",
    method: 'POST', 
    params:data
  })
}

export function upLoadImgApi(data) {
  return request({
    url: "/file/upload",
    ContentType: 'multipart/form-data',
    method: "post",
    params: data,
  });
}
